<div id="formsuccess" style="display:none">{if $errors.status == "success"}{$link}{/if}</div>
<form id="deleteForm" name="form" action="?module=backoffice&action=block_DeleteGeneric" method="post" class="nyroModal">
{t assignTo=title}Delete group{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
<div id="modalContent">
	<table class="modalTable">
		{if !$disableDeletion}
		<tr><th>{t}Are you sure you want to delete the group{/t} "{$group->getLabel()}" ?</th></tr>
		{/if}
		<tr><td>{icon name="warning.png"} {t}Be careful, this action will also delete all items contained in the group.{/t}</td></tr>
		{foreach from=$messages item=message}
		<tr><td>{icon name="warning.png"} {$message}</td></tr>
		{/foreach}

        <input type="hidden" name="docLang" value="{$group->getLang()}" />
        <input type="hidden" name="docId" value="{$group->getUniqueId()}" />
        <input type="hidden" name="recursive" value="true" />
	</table>
</div>
{t assignTo=title}Delete{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$title onClickParam="" noButton=$disableDeletion}
</form>